import React, { Component } from 'react'

export default class Dialog extends Component {
  render() {
    const { isShow, changeState } = this.props
    return (
      <div className={isShow ? 'dialog' : 'dialog-none'}>
        <h3>
          标题
          <span onClick={() => changeState()}>X</span>
        </h3>
        <div>
          <button onClick={() => changeState()}>确定</button>
          <button onClick={() => changeState()}>取消</button>
        </div>
      </div>
    )
  }
}
